import type { RouteRecordRaw } from 'vue-router';

// admin 布局
const Layout = () => import('@/layout/index.vue');
// 首页
const Home = () => import('@/views/home/index.vue');

const routes: RouteRecordRaw = {
	path: '/',
	name: 'homeRouter',
	component: Layout,
	meta: {
		title: 'router.home',
		icon: 'shouye',
		index: '/',
	},
	children: [
		{
			path: '',
			name: 'homeLayout',
			component: Home,
			meta: {
				isHide: true,
			},
		},
	],
};

export default routes;
